
// 渲染1
$.get("./goodsAndShoppingCart/getGoodsList.php", { 'typeId': '001' }, function (data) {
    goods(data)

}, 'json')

function goods(data) {
    let innerstr = ""
    for (let i = 0; i < data.length; i++) {
        innerstr +=
            `
            <a  href="shoppinginfo.html?id=${data[i].goodsId}"  target="_new">
                <div class="list-item">
                    <img src="${data[i].goodsImg}" alt="">
                    <div class="txt">${data[i].goodsName}</div>
                </div>
            </a>
              
              `
    }
    $(".list").html(innerstr);
}
// 渲染1
